package com.mic.gae.service.impl;

import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.urlfetch.URLFetchService;
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.google.inject.AbstractModule;
import com.mic.gae.service.ContiniousIntegrationService;

/**
 * 
 * @author michael
 * 
 */
public class HudsonContiniousIntegrationModule extends AbstractModule {

	/**
	 * 
	 */
	public HudsonContiniousIntegrationModule() {
		super();
	}

	/**
	 * 
	 */
	@Override
	protected void configure() {
		bind(UserService.class).toInstance(UserServiceFactory.getUserService());
		bind(ContiniousIntegrationService.class).to(HudsonContiniousIntegrationService.class);
		bind(DatastoreService.class).toInstance(DatastoreServiceFactory.getDatastoreService());
		bind(URLFetchService.class).toInstance(URLFetchServiceFactory.getURLFetchService());
	}

}
